< previous page page_199 next page >

Page 199
unchanged. If the colors in an area do not change much, the new pixel values in that area do not change much.
When the kernel passes over an area where the colors change, the negative coefficients tend to push the output value away from the center pixel's value. If the pixels corresponding to the negative coefficients are dark, they tend to make the result brighter. If these coefficients correspond to bright pixels, they tend to make the result darker. Bright pixels that have dark neighbors tend to brighten even more. Dark pixels that have bright neighbors tend to darken further. That tendency makes areas with high-frequency color changes appear sharper.
Figure 7.4 shows program Filter using a strong high-pass filter. The filter's kernel is the third one shown earlier with central coefficient 5.
Some images contain so much detail that high-pass filtering causes strange effects. Recall that a dithered image is one in which small dots of one color have been placed in another color to simulate yet a third color. For example, you can simulate pink by placing white dots in a region of red.
If you use a high-pass filter on a dithered image, the filter emphasizes the little dots of color and can produce very strange results. Figure 7.5 shows program Filter applying a relatively weak high-pass filter to an image displayed with 16 dithered colors. While the result is interesting, the transformed dithering effects dominate the image. With stronger high-pass filters, the dithering effects make the image almost unrecognizable.
One way to reduce the effects of a high-pass filter is to make the central coefficient relatively large. Then pixel values corresponding to negative coefficients will still tend to push the result toward darker or lighter values, but they will not be able to influence the result as much as the center pixel does.
0199-01.jpg
Figure 7.4
Program Filter demonstrating a strong high-pass filter.

 
< previous page page_199 next page >